using UnityEngine;
using System.Collections;

public class maila : MonoBehaviour {

	public float speed = 10.0f;

	// Use this for initialization
	void Start () {
		
		
	
	}
	
	// Update is called once per frame
	void Update () {
		
		if(Input.GetKey ("left"))
			rigidbody.velocity = new Vector3(-speed, 0f, 0f);
		if(Input.GetKey ("right"))
			rigidbody.velocity = new Vector3(speed, 0f, 0f);
	
	}
}